El comportamiento de estas funciones está afectado por los valores definidos en php.ini.
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| mongo.default_host | "localhost" | PHP_INI_ALL | |
| mongo.default_port | 27017 | PHP_INI_ALL | |
| mongo.auto_reconnect | 0 | PHP_INI_SYSTEM | |
| mongo.allow_persistent | 1 | PHP_INI_SYSTEM | |
| mongo.max_persistent | -1 | PHP_INI_SYSTEM | |
| mongo.max_connections | -1 | PHP_INI_SYSTEM | |
| mongo.chunk_size | 262144 | PHP_INI_SYSTEM |
For further details and definitions of the PHP_INI_* modes, see the En dónde puede definirse un valor de configuración.
A continuación se presenta una corta explicación de las directivas de configuración.
Default hostname. "localhost" is recommended.
The default TCP port number to use when connecting to the database server if no other port is specified. The database's default is 27017.
Whether to reconnect to the database if the connection is lost.
If persistent connections are allowed.
The number of simultaneous persistent connections to allow. -1 allows unlimited persistent connections.
The number of simultaneous connections to allow. -1 allows unlimited connections.
The number of bytes-per-chunk. Used in divvying up GridFS files.